//
//  ViewController.swift
//  Love
//
//  Created by boy on 2018/3/29.
//  Copyright © 2018年 boy. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        self.view.backgroundColor = UIColor.white;
        let printLabel = LCPrintLabel(frame:CGRect(x:0, y:64, width:300, height:450))
        printLabel.text = "\n永和九年，岁在癸丑，暮春之初，会于会稽山阴之兰亭，修禊事也。\n群贤毕至，少长咸集。此地有崇山峻岭，茂林修竹，又有清流激湍，映带左右，引以为流觞曲水，列坐其次。\n虽无丝竹管弦之盛，一觞一咏，亦足以畅叙幽情。！"
        printLabel.numberOfLines = 0
        printLabel.backgroundColor = UIColor.clear
        printLabel.prientColor = UIColor.green
        printLabel.sizeToFit()
        printLabel.completeBlock = {
            print("结束")
        }
        self.view.addSubview(printLabel)
        
        printLabel.startPrint()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

